package com.wyq.jpa;

import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.media.multipart.MultiPartFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.mvc.jsp.JspMvcFeature;


/**
 * Created by langzi.me on 2017/10/20
 */
public class MyApplication extends ResourceConfig {

    /**
     * Register JAX-RS application components.
     */
    public MyApplication () {
        packages("com.wyq.jpa.controller");
        register(JspMvcFeature.class);
        register(JacksonFeature.class);
        register(MultiPartFeature.class);
    }
}